﻿using ERP.SYS.Model.Entity;
using UERP.Common.Util.Model;

namespace ERP.Common.Util.Interfaces;

public interface IBaseService<T> where T : class
{
    Task<T> CreateAsync(T entity);
    Task<T> GetByIdAsync(long id);
    Task<PagedList<T>> GetAllAsync(int page = 1, int pageSize = 10);
    Task<T> UpdateAsync(T entity);
    Task DeleteAsync(long id);
}
